//
//  TextTableViewCell.m
//  beautyAccompany
//
//  Created by xiaocankeji on 15/11/25.
//  Copyright © 2015年 xiaocankeji. All rights reserved.
//

#import "TextTableViewCell.h"

@implementation TextTableViewCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        _orderRowView = [[OrderRowView alloc] init];
        [self addSubview:_orderRowView];
        
       _contentLabel = [[UILabel alloc] init];
        _contentLabel.font = kFont(15);
        _contentLabel.textColor = RGBA(100, 100, 100, 1);
        _contentLabel.textAlignment = NSTextAlignmentRight;
        [self addSubview:_contentLabel];
        
        
    }
    return self;
}

- (void)awakeFromNib {
    // Initialization code
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    _orderRowView.frame = CGRectMake(0, 0, 100, self.height);
    _contentLabel.frame = CGRectMake(100, 0, DeviceWidth - 130, self.height);
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
+ (NSString *)changeNSDate:(NSDate *)date;
{
    //  NSDate *nDate = [date dateByAddingTimeInterval:8*60*60];
    NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
    [dateFormatter setDateFormat:@"HH:mm  MM-dd"];
    NSString *morelocationString=[dateFormatter stringFromDate:date];
    return morelocationString;
}
@end
